﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    AppTask
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%if (ViewData["NoData"] != null)
      {%>
    <h2>
        分类中没有可用的信息。</h2>
    <%
        }
      else
      {%>
    <%
        var typeDisplayText = ViewData["typeDisplayText"] as string;
        var appFunctions = ViewData["appFunctions"] as Dictionary<string, IList<AppFunction>>;
    %>
    <h2>
        【选择关于你 <%:typeDisplayText%> 的事务】</h2>
    <%
        foreach (var keyValuePair in appFunctions)
        {%>
          <h3><%: keyValuePair.Key %></h3>
            <%foreach (var appFunction in keyValuePair.Value)
              {%>
            <div class="sec">
                <a href="<%=appFunction.TargetUrl%>">【<%:appFunction.Title%>】</a><br />
                <%:appFunction.Description%>
            </div>
            <%}
    %>
    <%
        }%>
    <%
        }%>
</asp:Content>
